package solutions.leetcode.easy;

import solutions.lib.BaseSolution;
import solutions.lib.ListNode;

/**
 * @author lizhidong
 * <a href="https://leetcode-cn.com/problems/delete-node-in-a-linked-list/">237. 删除链表中的节点</a>
 */
public class Solution237 extends BaseSolution {

    public void deleteNode(ListNode node) {
        node.val = node.next.val;
        node.next = node.next.next;
    }

    public static void main(String[] args) {
        Solution237 solution = new Solution237();
    }
}